﻿using Kingdee.BOS.Core.DynamicForm;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DevSamPle
{
    [Description("【表单插件】Test"), HotUpdate]
    public class AFormPlugin : AbstractDynamicFormPlugIn
    {
        public override void BarItemClick(BarItemClickEventArgs e)
        {
            base.BarItemClick(e);
            if (e.BarItemKey.Equals("test", StringComparison.OrdinalIgnoreCase))
            {
                var view = this.View;
                var model = this.Model;
                var vm = this.View.Model;
                var fPlugin = this.View.BillBusinessInfo.GetForm().FormPlugins;
                //表单插件，点击菜单事件演示
                this.View.ShowMessage("【表单插件】Test", MessageBoxType.AskYes);
            }
        }
    }
}
